Page({
  data: {
    backgroundColor: "#5677fc"
  },
  onLoad: function (options) {
    let page = options.page || ""
    if (page == 'mall') {
      this.setData({
        backgroundColor: "#EB0909"
      })
      wx.setNavigationBarTitle({
        title: "查看物流"
      })
      setTimeout(() => {
        wx.setNavigationBarColor({
          backgroundColor: this.data.backgroundColor,
          frontColor: "#ffffff"
        })
      }, 50)
    }
  }
})